<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/master.css" />
	<link rel="stylesheet" type="text/css" href="/css/product.css"/>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script src="/js/utility/common_util.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$(function(){
				resizePopup();
			});

			$('input[name=cash]:radio').click(function() {
				// alert($(this).val());
				var values = $(this).val().split("|");
				$('#idx').val(values[0]);
				$('#cash_view').html(values[1]);
				$('#bonus_view').html(values[2]);
			});
		});

		function goPayletter() {
			var frm = document.forms[0];
			if (frm.idx.value == '') {
				alert("결제 금액을 선택하세요.");
				return false;
			}
			self.resizeTo(616,460);
			document.forms[0].submit();
		}
	</script>
</head>
<body>
<div id="wrap">
	<div class="pop">
		<h1 class="cash blind">캐쉬 구매</h1>
		 <!--vip혜택 배너-->
			<div class="vip_bn">
				<a href="/product/package" target="_new"><img src="/images/banner/vip_cash_w450.jpg" alt="vip혜택 배너" /></a>
			</div>
			<!--//vip혜택 배너-->
		<!--서브타이틀-->
		<div class="contents">
			
			<div class="price">
				<form method="post" name="frm" action="/payment/payletter">
					<input type="hidden" name="p_type" id="p_type" value="cash" />
					<input type="hidden" name="idx" id="idx" />
					<p class="infotit">결제수단 선택</p>
					<ul>
						<li>
							<input type="radio" name="pgcode" id="pgcode_3" class="input_radio" value="3" checked="checked" />
							<label for="pgcode_3">휴대폰</label>
						</li>
						<li><input type="radio" name="pgcode" id="pgcode_15" class="input_radio" value="15"/>
							<label for="pgcode_15">신용카드</label>	
						</li>
						<li>	
							<input type="radio" name="pgcode" id="pgcode_16" class="input_radio" value="16" />
							<label for="pgcode_16">가상계좌이체</label>
						</li>
						<li>	
							<input type="radio" name="pgcode" id="pgcode_22" class="input_radio" value="22" />
							<label for="pgcode_22">폰빌</label>
						</li>
						<li>	
							<input type="radio" name="pgcode" id="pgcode_10" class="input_radio" value="10" />
							<label for="pgcode_10">해피머니</label>		
						</li>
						<li>
							<input type="radio" name="pgcode" id="pgcode_6" class="input_radio" value="6" />
							<label for="pgcode_6">도서상품권</label>
						</li>				
					</ul>
				</form>
			</div><!--price-->
			
			<div class="price">
				<p class="infotit">결제금액 선택</p>
				<ul id="cash_radio">
<?	foreach ($cashpoint_list as $items) : ?>
					<li>
						<input type="radio" name="cash" id="cash_<?=$items['idx']?>" class="input_radio" value="<?=$items['idx']?>|<?=number_format($items['cash'])?>|<?=number_format($items['bonus_point'])?>" />
						<label for="cash_<?=$items['idx']?>"><?=number_format($items['price'])?>원</label>
					</li>
<?	endforeach ?>
				</ul>
				<div class="total">
					<div class="charge_cash">
						<p><img src="/images/product/icon_charge_cash.png" alt="캐쉬아이콘" /> 충전되는 캐쉬 : <span id="cash_view">0<em>C</em></span></p>

					</div>
					<div class="charge_cash">
						<p><img src="/images/product/icon_charge_bonus.png" alt="보너스아이콘" />보너스 : <span id="bonus_view">0<em>P</em></span></p>
					</div>
				</div>
			</div>
			<!--price-->
			
			<div class="notice size">
                                <h4>구매 전 확인하세요!</h4>
                                <h5>이용 안내</h5>
                                <p>원하는 만큼의 '운신 캐쉬'를 먼저 충전하시고, 이용하고 싶은 운세서비스를<br />
                                구매하시면 됩니다.</p>
                                <h5>비고</h5>
                                <p>'운신 캐쉬'로는 개별상품만 구매 하실 수 있습니다.(VIP회원권 구매 불가)<br />
                                 보너스로 지급되는 포인트는 캐쉬를 다 소진한 후 사용 가능합니다.</p>
                                <h5>유의 사항</h5>
                                <p>결제완료 후에는 '새로 고침' 또는 '뒤로' 버튼을 누르지 마시기 바랍니다.<br />
                                (사용자의 실수에 대해서는 환불되지 않습니다.)</p>
                            	<h5>이용문의</h5>
                                <p>고객센터 02)3219-8253, <em class="email"><a href="mailto:help@unsin.co.kr">help@unsin.co.kr</a></em> 로 문의 주시기 바랍니다.</p>
                            </div>
			<!--popNotice--> 
			
		</div>
		<!--contents-->
       
		<div class="bt_area">
			<a href="javascript:;" onclick="goPayletter()" class="btyes"><img src="/images/common/bt_ok.png" alt="확인" /></a>
			<a href="javascript:;" onclick="window.close()" class="btno"><img src="/images/common/bt_cancle.png" alt="취소" /></a>
		</div>
		<!--하단--> 
	</div>
	<!--pop--> 
</div>

</body>
</html>